<?php

use Biz\service\Category as sCategory;
use Doraemon\tools\ActionLog;

/**
 * @deprecated
 */
class ShowCategoryAction extends ActionPlugin
{

    const USER_LEVEL = self::LEVEL_NOTHING;

    public function main()
    {
        $result = sCategory::getShowCategoryList();
        $result = $result ? $result : (object)[];

        ActionLog::log($this->uid, [], ActionLog::BIZ_ALL_CATEGORY);

        $this->setSuccess($result);
    }
}